﻿<%@ Page Title="" Language="C#"  AutoEventWireup="true" CodeBehind="ListSHTG.aspx.cs" Inherits="lcs.Web.Outstorage.ListSHTG" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
     <link href="../../css/myStyle.css" rel="stylesheet" />
    <link href="../../style.css" type="text/css" rel="stylesheet" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <style type="text/css">
        td {
            font-size: 9pt;
        }

        a {
            color: Blue;
            text-decoration: none;
        }

        body {
            font-size: 9pt;
        }
    </style>
     <link href="../../jquery-ui.min.css" rel="stylesheet" />
    <script src="../../js/jquery.js"></script>
    <script src="../../js/jquery-ui.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#txt_projectName").autocomplete({
                minLength: 1, // 设置搜索的关键字最小长度// 设置自动完成列表的函数，函数包括两个参数，requset和response      
                source: function (request, response) {
                    $.ajax({
                        type: "POST",          // 通过request.term可以获得文本框内容   
                        url: "Handler.ashx?keyword=" + request.term,
                        contentType: "application/json; charset=gb2312",
                        dataType: "json",
                        success: function (data) {
                            // jQuery.map(array, callback) :将一个数组中的元素转换到另一个数组中。
                            //  下面就是把数组["value1", "value2",...]转换为[{value:"value1"}, {value:"value2"},...]                 
                            response($.map(data, function (item) {
                                return { value: item };
                            }));
                        },
                        error: function () {
                            alert("ajax请求失败");
                        }
                    });
                }
            });
        });

    </script>
</head>
<body style="font-size: 9pt; text-align:center;">
     <form id="form1" runat="server">
    <div style="text-align: left;">
        <strong>项目名称：</strong>
        <asp:TextBox ID="txt_projectName" runat="server" Width="155px"></asp:TextBox>
        &nbsp;<strong>物料描述：</strong><asp:TextBox ID="txt_material" runat="server"></asp:TextBox>
        &nbsp;<asp:Button ID="btn_select" runat="server"
            OnClick="btn_selectProject_Click" Text="查询" CssClass="btn" />
    </div>
    <div style="margin-top: 10px; margin-bottom: 10px; text-align: left;">
        <b>审核通过出库单</b>
    </div>
    <div style="margin-top: 10px; margin-bottom: 10px; text-align: center;">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="1500px" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="proid" HeaderText="项目编号" />
                <asp:BoundField DataField="projectname" HeaderText="项目名称" />
                <asp:BoundField DataField="material" HeaderText="物料描述" />
                <asp:BoundField DataField="out_storage_count" HeaderText="预出库数量" />
                <asp:BoundField DataField="out_storage_Estimate" HeaderText="预出库时间" />
                <asp:BoundField DataField="receive_address" HeaderText="收货地址" />
                <asp:BoundField DataField="receive_userName" HeaderText="接收人" />
                <asp:BoundField DataField="receive_userPhone" HeaderText="接收人电话" />
            </Columns>
        </asp:GridView>
    </div>

    <div>
    </div>
</form>
</body></html>